package net.toocruel.iqismart.entity.ask;

import net.toocruel.iqismart.entity.base.BaseEntity;
import net.toocruel.iqismart.entity.common.Tag;
import net.toocruel.iqismart.entity.rbac.User;

import javax.persistence.*;

/**
 * @Description
 * @Auther sty
 * @createTime 2018/5/8 上午11:35
 */
public class UserTag extends BaseEntity {
    private static final long serialVersionUID = 2503197497401298396L;
    @ManyToOne(cascade = CascadeType.DETACH,fetch = FetchType.LAZY)
    @JoinColumn(name = "userId")
	private User user;
    @ManyToOne
    private Tag tag;
    private int questions;
    private int articles;
    private int answers;
    private int supports;
    private int adoptions;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Tag getTag() {
        return tag;
    }

    public void setTag(Tag tag) {
        this.tag = tag;
    }

    public int getQuestions() {
        return questions;
    }

    public void setQuestions(int questions) {
        this.questions = questions;
    }

    public int getArticles() {
        return articles;
    }

    public void setArticles(int articles) {
        this.articles = articles;
    }

    public int getAnswers() {
        return answers;
    }

    public void setAnswers(int answers) {
        this.answers = answers;
    }

    public int getSupports() {
        return supports;
    }

    public void setSupports(int supports) {
        this.supports = supports;
    }

    public int getAdoptions() {
        return adoptions;
    }

    public void setAdoptions(int adoptions) {
        this.adoptions = adoptions;
    }
}
